import {Pipe, PipeTransform} from '@angular/core';

@Pipe({
  name: 'cnTrans'
})
export class CnTransPipe implements PipeTransform {
  constructor() {
  }

  transform(value: any): any {
    switch (value) {
      case false:
        return '否';
      case true:
        return '是';
    }
  }
}
